//donvie.top
:root {
    --primary-bg-color: #000;
    --secondary-bg-color: #1a1a1a;
    --text-color: #00ffcc;
    --link-color: #00ffcc;
    --card-bg-color: #222;
    --card-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    --font-size: 16px;
    --transition-time: 0.3s;
}

[data-theme="light"] {
    --primary-bg-color: #f0f8ff;
    --secondary-bg-color: #e0f7fa;
    --text-color: #00796b;
    --link-color: #00796b;
    --card-bg-color: #fff;
    --card-shadow: 0 0 10px rgba(0, 121, 107, 0.3);
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-time) ease, color var(--transition-time) ease;
    font-size: var(--font-size);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    margin-bottom: 10px;
    color: var(--link-color);
    transition: color var(--transition-time) ease;
}

a:hover {
    color: #00ccaa;
}

h1 {
    color: var(--text-color);
    border-bottom: 2px solid var(--link-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}

h2 {
    color: var(--text-color);
    margin: 30px 0 15px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 导航栏样式 */
nav {
    background-color: var(--secondary-bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
}

.menu-icon2 {
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dropdown {
    position: relative;
    background-color: var(--secondary-bg-color);
    color: var(--text-color);
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color var(--transition-time) ease;
    margin-right: 10px;
}

.dropdown-content {
    display: none;
    background-color: var(--secondary-bg-color);
    color: var(--text-color);
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    z-index: 1000;
    transition: top var(--transition-time) ease;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color var(--transition-time) ease;
}

.dropdown-content a:hover {
    background-color: #333;
}

.dropdown.open .dropdown-content {
    display: block;
}

.toolbox {
    display: flex;
    align-items: center;
}

.theme-toggle {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    transition: color var(--transition-time) ease;
}

.theme-toggle:hover {
    color: #ccc;
}

.search-icon {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
    transition: color var(--transition-time) ease;
}

.search-icon:hover {
    color: #ccc;
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    flex: 1;
}

/* 表单样式 */
.form-card {
    background-color: var(--card-bg-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    max-width: 800px;
    margin: 0 auto;
    flex: 1;
}

.form-title {
    color: var(--text-color);
    font-size: 28px;
    border-bottom: 2px solid var(--link-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--secondary-bg-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: var(--primary-bg-color);
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--link-color);
    outline: none;
}

.textarea-control {
    height: 200px;
    resize: vertical;
}

.file-input {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px dashed var(--link-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-input:hover {
    border-color: #00ccaa;
    background: var(--secondary-bg-color);
}

.submit-btn {
    background: var(--link-color);
    color: var(--primary-bg-color);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.submit-btn:hover {
    background: #00ccaa;
    transform: translateY(-2px);
}

.tip {
    color: #E74C3C;
    font-size: 14px;
    margin-top: 15px;
}

.converter-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
}

.converter-link:hover {
    text-decoration: underline;
}

/* 搜索表单样式 */
#search-form {
    background-color: var(--card-bg-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

#search-form input[type="text"], #search-form select {
    padding: 12px 15px;
    border: 1px solid var(--secondary-bg-color);
    border-radius: 4px;
    flex: 1;
    min-width: 200px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: var(--primary-bg-color);
    color: var(--text-color);
}

#search-form input[type="text"]:focus, #search-form select:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 204, 0.2);
}

#search-form label[for="selection"] {
    color: var(--text-color);
    font-weight: 500;
    white-space: nowrap;
    margin-right: 5px;
}

#search-form button[type="submit"] {
    padding: 12px 25px;
    background-color: var(--link-color);
    color: var(--primary-bg-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

#search-form button[type="submit"]:hover {
    background-color: #00ccaa;
}

#search-time {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
}

#results-list {
    list-style: none;
    padding: 0;
}

#results-list li {
    background-color: var(--card-bg-color);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

#results-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#results-list a {
    text-decoration: none;
    color: var(--link-color);
}

#results-list a:hover {
    color: #00ccaa;
}

#results-list strong {
    color: var(--text-color);
}

#results-list p {
    text-align: center;
    padding: 40px;
    background-color: var(--card-bg-color);
    border-radius: 6px;
    color: #7f8c8d;
    margin: 0;
}

/* 页脚样式 */
footer {
    background-color: var(--secondary-bg-color);
    color: var(--text-color);
    text-align: center;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container, .form-card {
        width: 95%;
        padding: 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .form-title {
        font-size: 22px;
    }
    
    #search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    #search-form button[type="submit"] {
        width: 100%;
    }
    
    .file-input {
        flex-direction: column;
        text-align: center;
    }
}